package uz.rt.dicom.io;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class DicomIOException extends IOException
{
// ------------------------------ FIELDS ------------------------------

    private static Logger logger = Logger.getLogger(DicomIOException.class.getName());

// --------------------------- CONSTRUCTORS ---------------------------

    public DicomIOException(String message)
    {
        super(message);
        logger.log(Level.WARNING, message);
    }

    public DicomIOException(Throwable cause)
    {
        super(cause);
        logger.log(Level.WARNING, cause.getMessage());
    }

    public DicomIOException(String message, Throwable cause)
    {
        super(message, cause);
        logger.log(Level.WARNING, message);
        logger.log(Level.WARNING, cause.getMessage());
    }
}
